package com.axun.ckz.yytmanager.activity;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.axun.ckz.yytmanager.R;
import com.axun.ckz.yytmanager.base.BaseActivity;
import com.axun.ckz.yytmanager.ui.CustomTitleBar;
import com.axun.ckz.yytmanager.ui.MarqueeTextView;
import com.axun.ckz.yytmanager.ui.RingProgressBar;
import com.axun.ckz.yytmanager.util.SBTools;
import com.axun.ckz.yytmanager.util.SPUtils;

public class MainActivity extends BaseActivity {

    private String remark;
    private String title;

    private CustomTitleBar mTitleBar;
    private RingProgressBar mProgressBar;
    private TextView mTvBedAttendBed;
    private TextView mTvMaleRate;
    private LinearLayout mSearchLayout;
    private RelativeLayout mNoticeLayout;
    private TextView mNoticeTitleTv;
    private MarqueeTextView mNoticeContentTv;
    private LinearLayout mSecondLay;
    private RelativeLayout mAttendConditionLayout;
    private ImageView mIvAttendCondition;
    private RelativeLayout mFileCheckLayout;
    private ImageView mIvFileCheck;
    private RelativeLayout mNurseManageLayout;
    private ImageView mIvNurseManage;
    private LinearLayout mThirdLay;
    private RelativeLayout mNurseRegisterLayout;
    private ImageView mIvNurseRegister;
    private RelativeLayout mDiancanManageLayout;
    private ImageView mIvDishOrder;
    private RelativeLayout mChargeManageLayout;
    private ImageView mIvChargeManage;
    private RelativeLayout mStatisticsSearchLayout;
    private ImageView mIvStatisticsCheck;
    private LinearLayout mSevenLay;
    private RelativeLayout mLeaveManageLayout;
    private ImageView mIvLeaveManage;
    private RelativeLayout mHandoverManageLayout;
    private ImageView mIvHandoverManage;
    private RelativeLayout mIvSleepLayout;
    private RelativeLayout mSleepPointLay;
    private TextView mTvSleepNum;
    private ImageView mIvSleep;
    private RelativeLayout mIvVideoLayout;
    private ImageView mIvVideo;
    private LinearLayout mFourthLayout;
    private RelativeLayout mIvLocationLayout;
    private RelativeLayout mLocationPointLay;
    private TextView mTvLocationNum;
    private ImageView mIvLocation;
    private RelativeLayout mEntryLayout;
    private ImageView mIvEntry;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        SBTools.setChengjin(this);
        remark = getIntent().getStringExtra("remark");
        title = SPUtils.getStringSp(getContext(),"title");
        setContentView(R.layout.activity_main);
        initView();
    }

    private void initView() {
        mTitleBar = (CustomTitleBar) findViewById(R.id.title_bar);
        mProgressBar = (RingProgressBar) findViewById(R.id.progress_bar);
        mTvBedAttendBed = (TextView) findViewById(R.id.tv_bed_attend_bed);
        mTvMaleRate = (TextView) findViewById(R.id.tv_male_rate);
        mSearchLayout = (LinearLayout) findViewById(R.id.search_layout);
        mNoticeLayout = (RelativeLayout) findViewById(R.id.notice_layout);
        mNoticeTitleTv = (TextView) findViewById(R.id.notice_title_tv);
        mNoticeContentTv = (MarqueeTextView) findViewById(R.id.notice_content_tv);
        mSecondLay = (LinearLayout) findViewById(R.id.second_lay);
        mAttendConditionLayout = (RelativeLayout) findViewById(R.id.attend_condition_layout);
        mIvAttendCondition = (ImageView) findViewById(R.id.iv_attend_condition);
        mFileCheckLayout = (RelativeLayout) findViewById(R.id.file_check_layout);
        mIvFileCheck = (ImageView) findViewById(R.id.iv_file_check);
        mNurseManageLayout = (RelativeLayout) findViewById(R.id.nurse_manage_layout);
        mIvNurseManage = (ImageView) findViewById(R.id.iv_nurse_manage);
        mThirdLay = (LinearLayout) findViewById(R.id.third_lay);
        mNurseRegisterLayout = (RelativeLayout) findViewById(R.id.nurse_register_layout);
        mIvNurseRegister = (ImageView) findViewById(R.id.iv_nurse_register);
        mDiancanManageLayout = (RelativeLayout) findViewById(R.id.diancan_manage_layout);
        mIvDishOrder = (ImageView) findViewById(R.id.iv_dish_order);
        mChargeManageLayout = (RelativeLayout) findViewById(R.id.charge_manage_layout);
        mIvChargeManage = (ImageView) findViewById(R.id.iv_charge_manage);
        mStatisticsSearchLayout = (RelativeLayout) findViewById(R.id.statistics_search_layout);
        mIvStatisticsCheck = (ImageView) findViewById(R.id.iv_statistics_check);
        mSevenLay = (LinearLayout) findViewById(R.id.seven_lay);
        mLeaveManageLayout = (RelativeLayout) findViewById(R.id.leave_manage_layout);
        mIvLeaveManage = (ImageView) findViewById(R.id.iv_leave_manage);
        mHandoverManageLayout = (RelativeLayout) findViewById(R.id.handover_manage_layout);
        mIvHandoverManage = (ImageView) findViewById(R.id.iv_handover_manage);
        mIvSleepLayout = (RelativeLayout) findViewById(R.id.iv_sleep_layout);
        mSleepPointLay = (RelativeLayout) findViewById(R.id.sleep_point_lay);
        mTvSleepNum = (TextView) findViewById(R.id.tv_sleep_num);
        mIvSleep = (ImageView) findViewById(R.id.iv_sleep);
        mIvVideoLayout = (RelativeLayout) findViewById(R.id.iv_video_layout);
        mIvVideo = (ImageView) findViewById(R.id.iv_video);
        mFourthLayout = (LinearLayout) findViewById(R.id.fourth_layout);
        mIvLocationLayout = (RelativeLayout) findViewById(R.id.iv_location_layout);
        mLocationPointLay = (RelativeLayout) findViewById(R.id.location_point_lay);
        mTvLocationNum = (TextView) findViewById(R.id.tv_location_num);
        mIvLocation = (ImageView) findViewById(R.id.iv_location);
        mEntryLayout = (RelativeLayout) findViewById(R.id.entry_layout);
        mIvEntry = (ImageView) findViewById(R.id.iv_entry);
        mTitleBar.setTitle(title);
    }


}
